package com.irdstudio.apicenter.console.service.authenticate;

import java.sql.SQLException;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.irdstudio.apicenter.console.dm.AppTradeLog;
import com.irdstudio.apicenter.console.dm.AppTradeLogDao;

@Service(value = "appTradeLogService")
public class AppTradeLogService {

	@Autowired
	private AppTradeLogDao appTradeLogDao;

	public int querySumWithBytradeCode(String appId)
			throws SQLException, ClassNotFoundException {
		return appTradeLogDao.querySumWithBytradeCode(appId);
	}

	public AppTradeLog queryWithKeys(String tradeSerialNo) throws SQLException {
		return appTradeLogDao.queryWithKeys(tradeSerialNo);
	}

	public List<AppTradeLog> queryWithCond(String szCondition, String szOrderBy)
			throws SQLException {
		return appTradeLogDao.queryWithCond(szCondition, szOrderBy);
	}
	
	public List<AppTradeLog> queryWithBytradeCode(String appId)
			throws SQLException {
		return appTradeLogDao.queryWithBytradeCode(appId);
	}

}
